7 while (gets(s
) && strcmp(s
,".")) {
8 int n
= strlen(s
), m
= n
;
9 for (int i
=2; i
<=n
; i
++) {
14 for (j
=0; j
< m
-m
/i
&& s
[j
] == s
[j
+m
/i
]; j
++);
16 if (j
== m
-m
/i
) m
/= i
;
17 printf("End of iteration with i = %d: n = %d, m = %d\n", i
, n
, m
);
20 printf("%lu\n",strlen(s
)/m
);